package com.wangdong.network.http;

import android.content.Context;

import org.apache.http.conn.ssl.AllowAllHostnameVerifier;
import org.apache.http.conn.ssl.SSLSocketFactory;

/**
 * 作者：wangdong on 2018/3/26 20:56
 * 邮箱：2100520956@qq.com
 */

public class HttpSender {

    private static CMHttpSender instance;

    public static CMHttpSender getInstance (Context context){
        SSLSocketFactory.getSocketFactory().setHostnameVerifier(new AllowAllHostnameVerifier());//用于https
        if(instance==null){
            instance=new CMHttpSender(context);
        }
        return instance;
    }
}
